<template>
    <div>
        <h2>News page</h2>
        <ul>
            <li><a href="/">Home</a></li>
        </ul>
        <!-- 接收参数 -->
        <!-- Nuxt 动态路由和参数校验,动态路由就是带参数的路由  -->
        <!-- <li><nuxt-link to="/news/3306">NEWS 3306</nuxt-link></li> -->
        <li><nuxt-link :to="{name:'news-id',params:{id:123,title:'坚持学习'}}">NEWS 3306</nuxt-link></li>
    </div>
</template>

  